package action.member;

import org.apache.struts2.ServletActionContext;

import service.interf.IFirmwareInfo;
import action.common.MyBaseAction;

import com.opensymphony.xwork2.ModelDriven;

import dao.pojo.FirmwareInfo;

public class FirmwareInfoBrowAction extends MyBaseAction<FirmwareInfo>
		implements ModelDriven<FirmwareInfo> {

	private static final long serialVersionUID = 1L;
	private IFirmwareInfo iFirmwareInfo;

	public void setiFirmwareInfo(IFirmwareInfo iFirmwareInfo) {
		this.iFirmwareInfo = iFirmwareInfo;
	}

	public FirmwareInfoBrowAction() {
		super(FirmwareInfo.class);
	}

	public FirmwareInfo getModel() {
		return model;
	}

	/**
	 * 获取列表
	 */
	public void getlist() {
		String r = "1";
		try {
			r = iFirmwareInfo.findByProperty("FirmwareInfo", "*", "json",
					false, null, null, null, null, 0, 0);
		} catch (Exception e) {
			r = errorHandle.handleErr(e);
		}
		servletHandle.writeToClient1(ServletActionContext.getResponse(), r);
	}

}
